package com.peter.appsearchdemo;

import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appsearch.app.AppSearchSession;
import androidx.appsearch.localstorage.LocalStorage;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Window w = getWindow();
        TextView tv = w.findViewById(R.id.tv2);
        System.out.println(tv == null);
    }
}